package cn.touna.jss.common.properties.disconf;

import com.baidu.disconf.client.common.annotations.DisconfFile;
import com.baidu.disconf.client.common.annotations.DisconfFileItem;
import org.springframework.stereotype.Component;

/**
 * Created by MeiZhongHao on 2018/05/04.
 */
@Component
@DisconfFile(filename = "youfen.properties", targetDirPath = "disconf")
public class YoufenProperties {

    private String url;
    private String education;
    private String travelPortraitsMethod;
    private String account;
    private String type;

    @DisconfFileItem(name = "youfen.education", associateField = "education")
    public String getEducation() {
        return education;
    }

    public void setEducation(String education) {
        this.education = education;
    }

    @DisconfFileItem(name = "youfen.url", associateField = "url")
    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    @DisconfFileItem(name = "youfen.travelPortraitsMethod", associateField = "travelPortraitsMethod")
    public String getTravelPortraitsMethod() {
        return travelPortraitsMethod;
    }

    public void setTravelPortraitsMethod(String travelPortraitsMethod) {
        this.travelPortraitsMethod = travelPortraitsMethod;
    }

    @DisconfFileItem(name = "youfen.account", associateField = "account")
    public String getAccount() {
        return account;
    }

    public void setAccount(String account) {
        this.account = account;
    }

    @DisconfFileItem(name = "youfen.type", associateField = "type")
    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }
}
